﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GoodsInvoicing.Model.User;
using GoodsInvoicing.Model.Menu;

namespace GoodsInvoicing.Views.View
{
    public interface IMainForm
    {
        #region 事件
        /// <summary>
        /// 读取菜单事件  
        /// </summary>
        event EventHandler<EventArgs> MainMenuLoad;

        /// <summary>
        /// 二级菜单点击事件
        /// </summary>
        event EventHandler SubMenuClick;
        #endregion

        #region 属性
        /// <summary>
        /// 登录用户信息
        /// </summary>
        UserDetail User { get; set; }
        MainForm Form { get; set; }

        #endregion
        
        #region 方法
        /// <summary>
        /// 显示一级菜单
        /// </summary>
        /// <param name="menus"></param>
        void ShowMenu(IDictionary<GI_Menu, IList<GI_Menu>> menus);
        #endregion

    }
}
